package tgc.edu.library.entity;

import javax.persistence.Entity;
import javax.persistence.ManyToOne;

import tgc.edu.library.custom.BaseEntity;

@Entity
public class BorrowRecord extends BaseEntity<Integer>{
	
	private String applytime;//申请时间
	private String borrowtime;//同意借书时间
	private String givetime;//归还时间
	private String status;//状态
	private String operation;//操作人用户名
	private Reader reader;//读者对象
	private Book book;//图书对象
	
	@ManyToOne
	public Book getBook() {
		return book;
	}
	public void setBook(Book book) {
		this.book = book;
	}
	@ManyToOne
	public Reader getReader() {
		return reader;
	}
	public void setReader(Reader reader) {
		this.reader = reader;
	}
	public String getApplytime() {
		return applytime;
	}
	public void setApplytime(String applytime) {
		this.applytime = applytime;
	}
	public String getBorrowtime() {
		return borrowtime;
	}
	public void setBorrowtime(String borrowtime) {
		this.borrowtime = borrowtime;
	}
	public String getGivetime() {
		return givetime;
	}
	public void setGivetime(String givetime) {
		this.givetime = givetime;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getOperation() {
		return operation;
	}
	public void setOperation(String operation) {
		this.operation = operation;
	}
	
	
}
